package data;

public class EVECentralMarketValues {

  public EVECentralMarketValues() {
    _volume = "unknown";
    _avg = "unknown";
    _max = "unknown";
    _min = "unknown";
    _stddev = "unknown";
    _median = "unknown";
    _percentile = "unknown";
  }

  public void dump() {
    System.out.println("Volume=" + _volume);
    System.out.println("Average=" + _avg);
    System.out.println("Maximum=" + _max);
    System.out.println("Minimum=" + _min);
    System.out.println("Standard deviation=" + _stddev);
    System.out.println("Median=" + _median);
    System.out.println("Percentile=" + _percentile);
  }

  public String get(int columnIndex) {
    if (columnIndex == 0) return _volume;
    if (columnIndex == 1) return _avg;
    if (columnIndex == 2) return _max;
    if (columnIndex == 3) return _min;
    if (columnIndex == 4) return _stddev;
    if (columnIndex == 5) return _median;
    if (columnIndex == 6) return _percentile;
    return null;
  }

  @Override
  public String toString() {
    String dumpString = "Volume=" + _volume + "\n";
    dumpString += "Average=" + _avg + "\n";
    dumpString += "Maximum=" + _max + "\n";
    dumpString += "Minimum=" + _min + "\n";
    dumpString += "Standard deviation=" + _stddev + "\n";
    dumpString += "Median=" + _median + "\n";
    dumpString += "Percentile=" + _percentile;
    return dumpString;
  }

  public String getVolume() {
    return _volume;
  }

  public void setVolume(String _volume) {
    this._volume = _volume;
  }

  public String getAvg() {
    return _avg;
  }

  public void setAvg(String _avg) {
    this._avg = _avg;
  }

  public String getMax() {
    return _max;
  }

  public void setMax(String _max) {
    this._max = _max;
  }

  public String getMin() {
    return _min;
  }

  public void setMin(String _min) {
    this._min = _min;
  }

  public String getStddev() {
    return _stddev;
  }

  public void setStddev(String _stddev) {
    this._stddev = _stddev;
  }

  public String getMedian() {
    return _median;
  }

  public void setMedian(String _median) {
    this._median = _median;
  }

  public String getPercentile() {
    return _percentile;
  }

  public void setPercentile(String _percentile) {
    this._percentile = _percentile;
  }

  public String _volume;
  public String _avg;
  public String _max;
  public String _min;
  public String _stddev;
  public String _median;
  public String _percentile;

}
